60-1
file-control.
select [optional] File-1
assign DatX-1
Dev-1
[organization] org-spec-1*
[access access-spec-1*]
[sharing-spec-1*]
[file status FileS-1] .
...
[file section.]
fd File-1 [file-spec-1*].
record-spec-1*
1 Rec-1 data-spec*.
...
...
working-storage section.
77 DatX-1 data-spec*.
procedure division.
file-handling-statements*
open,close,read,start,delete File-1
write,rewrite Rec-1
Det-1
org-spec*
[line] sequential
indexed {with record [and alternate] key phrases}
relative {with relative key phrase}
acces-spec*
sequential
dynamic
random
sharing-spec*
{lock and sharing phrases}
file-spec*
{block, recording and other phrases}
data-spec*
see Data formats
MX limitations:
org-spec*, sharing-spec* and file status have some restrictions
see How to in MX
Remarks:
for details of provider's dialects and COBOL-02 - see links
|